.single-stock-page {
  padding: 30px;
  background: linear-gradient(135deg, #f0faff, #e0f7fa, #ffffff);
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  color: #1a2b3c;

  h1, h2, h3 {
    color: #0a1f33;
  }

  .search-bar {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;

    input {
      flex: 1;
      padding: 12px 18px;
      border-radius: 12px;
      border: 1px solid rgba(180, 200, 220, 0.5);
      background: rgba(255, 255, 255, 0.4);
      backdrop-filter: blur(6px);
      font-size: 16px;
      outline: none;
      transition: border 0.3s ease;

      &:focus {
        border-color: #1ecbe1;
      }
    }

    button {
      font-weight: 600;
      font-size: 16px;
      border-radius: 10px;
      padding: 10px 24px;
      box-shadow: 0 4px 12px rgba(30, 203, 225, 0.3);
      background: linear-gradient(to right, #1ecbe1, #1a8fd9);
      color: white;
      border: none;
      transition: all 0.3s ease;

      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(26, 143, 217, 0.35);
      }

      &:disabled {
        opacity: 0.6;
        cursor: not-allowed;
      }
    }
  }

  .page-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;

  h1 {
    font-size: 26px;
    font-weight: 700;
    color: #0a1f33;
  }
}

  .error {
    color: #d32f2f;
    font-weight: 500;
    margin-top: -12px;
    margin-bottom: 20px;
  }

  .stock-result {
    margin-top: 20px;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

    h2 {
      margin-bottom: 16px;
    }

    .stock-info-table {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 12px;
      margin-bottom: 30px;

      .info-row {
        background: rgba(255, 255, 255, 0.55);
        backdrop-filter: blur(8px);
        padding: 10px 14px;
        border-radius: 12px;
        border: 1px solid rgba(220, 220, 220, 0.4);
        display: flex;
        justify-content: space-between;
        font-size: 14px;
        color: #1f2d40;

        .label {
          font-weight: 500;
        }

        .value {
          font-weight: 600;
          color: #122c42;
        }
      }
    }

.charts {
  display: flex;
  flex-direction: column; // 垂直排列
  gap: 24px; // 每个图之间留空
  margin-top: 24px;
}

.chart-box {
  background: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  height: 400px; // 设置较高的图表容器高度
  display: flex;
  flex-direction: column;

  h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #333;
  }

  canvas, svg {
    flex: 1;
    width: 100%;
  }
}

  }
}
